local sz_jueqing = fk.CreateSkill {
    name = "sz_jueqing",
    tags = { Skill.Compulsory },
}

Fk:loadTranslationTable {
    ["sz_jueqing"] = "绝情",
    [":sz_jueqing"] = "锁定技，当你不因此技能受到的伤害，改为体力流失；不因此技能导致的体力流失，改为无来源伤害。",

    ["$sz_jueqing1"] = "独自凭楼，暮雨浇心头，饮尽烈酒语还休。",
    ["$sz_jueqing2"] = "投箸弃珍馐，满腹情殇断肠，无人共白头。",
}

sz_jueqing:addEffect(fk.DamageInflicted, {
    anim_type = "defensive",
    can_trigger = function(self, event, target, player, data)
        return target == player and player:hasSkill(sz_jueqing.name) and data.skillName ~= "sz_jueqing"
    end,
    on_use = function(self, event, target, player, data)
        data:changeDamage(-data.damage)
        player.room:loseHp(player, 1, sz_jueqing.name)
    end
})
sz_jueqing:addEffect(fk.PreHpLost, {
    anim_type = "defensive",
    can_trigger = function(self, event, target, player, data)
        return target == player and player:hasSkill(sz_jueqing.name) and data.skillName ~= "sz_jueqing"
    end,
    on_use = function(self, event, target, player, data)
        data:preventHpLost()
        player.room:damage({
            to = player,
            damage = 1,
            skillName = sz_jueqing.name,
        })
    end
})

return sz_jueqing
